package main

import (
	"fmt"
	"strconv"
)

func main() {
	fmt.Println("shiyan1_2")
	userinput1 := ""
	userinput2 := ""
	fmt.Scanln(&userinput1)
	fmt.Scanln(&userinput2)

}

//两个str字符串拼接
func funStrAdd(str1 string, str2 string) string {
	return str1 + str2
}

//两个字符串转int然后相加
func funIntAdd(str1 string, str2 string) (int, error) {
	int1, err1 := strconv.Atoi(str1)
	if err1 != nil {
		return 0, err1
	}
	int2, err2 := strconv.Atoi(str2)
	if err2 != nil {
		return 0, err2
	}
	return int1 + int2, nil

}

//两个字符串转float然后相加
func funFloatAdd(str1 string, str2 string) (float64, error) {
	int1, err1 := strconv.ParseFloat(str1, 64)
	if err1 != nil {
		return 0, err1
	}
	int2, err2 := strconv.ParseFloat(str2, 64)
	if err2 != nil {
		return 0, err2
	}
	return int1 + int2, nil

}
